package com.example.fast_food_orders.model;

import java.time.LocalDateTime;
import java.util.List;

public class Order{
    private String orderId;
    private List<Item> items;
    private OrderStatus status;
    private double totalPrice;
    private LocalDateTime createTime;



    public Order(String orderId,List<Item> items,OrderStatus status,double totalPrice,LocalDateTime createTime){
        this.orderId = orderId;
        this.items = items;
        this.status = status;
        this.totalPrice = totalPrice;
        this.createTime = createTime;
    }

//    getter和setter方法
    public String getOrderId(){
        return orderId;
    }
    public void setOrderId(String orderId){
        this.orderId = orderId;
    }
    public List<Item> getItems(){
        return items;
    }
    public void setItems(List<Item> items){
        this.items = items;
    }
    public OrderStatus getStatus(){
        return status;
    }
    public void setStatus(OrderStatus status){
        this.status = status;
    }
    public double getTotalPrice(){
        return totalPrice;
    }
    public void setTotalPrice(double totalPrice){
        this.totalPrice = totalPrice;
    }
    public LocalDateTime getCreateTime(){
        return createTime;
    }
    public void setCreateTime(LocalDateTime createTime){
        this.createTime = createTime;
    }
}